package org.dromara.canteen.domain.bo;

import org.dromara.canteen.domain.CanteenCooking;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 烹饪管理业务对象 canteen_cooking
 *
 * @author Gjb
 * @date 2025-07-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CanteenCooking.class, reverseConvertGenerate = false)
public class CanteenCookingBo extends BaseEntity {

    /**
     * 烹饪id
     */
    @NotNull(message = "烹饪id不能为空", groups = { EditGroup.class })
    private Long cookingId;

    /**
     * 菜名
     */
    @NotBlank(message = "菜名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cookingName;

    /**
     * 烹饪食材
     */
    @NotBlank(message = "烹饪食材不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cookingIngredients;

    /**
     * 烹饪照片
     */
    @NotBlank(message = "烹饪照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cookingPhoto;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    private Long schoolCampusId;
}
